package com.simp.app.presenter.impl;

import com.simp.app.model.OnLoginFinishedListener;
import com.simp.app.model.RegisterInteractor;
import com.simp.app.model.impl.RegisterInteractorImpl;
import com.simp.app.presenter.RegisterPresenter;
import com.simp.app.view.RegisterView;

/**
 * Created by hanWG on 2015-10-21 下午5:40:46 $
 * 
 * @Description <p/>
 */
public class RegisterPresenterImpl implements RegisterPresenter,
		OnLoginFinishedListener {
	private RegisterPresenter mRegisterPresenter;
	private RegisterView mRegisterView;
	private RegisterInteractor reg;

	public RegisterPresenterImpl(RegisterView RegisterView) {
		this.mRegisterView = RegisterView;
		reg = new RegisterInteractorImpl();
	}

	@Override
	public void validateCredentials(String username, String password) {
		reg.reg(username, password, this);
	}

	// 用户名错误
	@Override
	public void onUsernameError() {

	}
	// 密码错误
	@Override
	public void onPasswordError() {
	}

	// 成功
	@Override
	public void onSuccess() {

	}

}
